
package com.serli.sample.person.model.service;

import java.util.List;
import javax.jws.Oneway;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
import com.serli.sample.person.model.data.Person;
import javax.ejb.Remote;


/**
 * 
 * @author P. MERON
 */
@WebService(targetNamespace = "http://ws.service.model.person.sample.serli.com/")
@Remote
public interface PeopleServiceRemote {


    @RequestWrapper(className = "com.serli.sample.person.model.service.ws.Delete")
    public void delete(
        @WebParam(name = "arg0")
        Person arg0);


    @Oneway
    @RequestWrapper(className = "com.serli.sample.person.model.service.ws.Insert")
    public void insert(
        @WebParam(name = "arg0")
        Person arg0);

    @RequestWrapper(className = "com.serli.sample.person.model.service.ws.GetAllOrderByFirstName")
    @ResponseWrapper(className = "com.serli.sample.person.model.service.ws.GetAllOrderByFirstNameResponse")
    public List<Person> getAllOrderByFirstName();


    @Oneway
    @RequestWrapper(className = "com.serli.sample.person.model.service.ws.TestRemoteSetPerson")
    public void testRemoteSetPerson(
        @WebParam(name = "arg0")
        Person arg0);


    @RequestWrapper(className = "com.serli.sample.person.model.service.ws.TestRemoteGetPerson")
    @ResponseWrapper(className = "com.serli.sample.person.model.service.ws.TestRemoteGetPersonResponse")
    public Person testRemoteGetPerson();


    @RequestWrapper(className = "com.serli.sample.person.model.service.ws.TestRemoteObject")
    @ResponseWrapper(className = "com.serli.sample.person.model.service.ws.TestRemoteObjectResponse")
    public Object testRemoteObject(
        @WebParam(name = "arg0")
        Object arg0);


    @RequestWrapper(className = "com.serli.sample.person.model.service.ws.TestRemotePrimitif")
    @ResponseWrapper(className = "com.serli.sample.person.model.service.ws.TestRemotePrimitifResponse")
    public int testRemotePrimitif(
        @WebParam(name = "arg0")
        int arg0);

}
